﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：NullSession.cs
// 功能描述：TongTongMall
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TongTongMall.Runtime.Session
{
    /// <summary>
    /// 默认SESSION
    /// </summary>
    public class NullSession : ITongTongMallSession
    {
        public static NullSession Instance { get { return SingletonInstance; } }
        private static readonly NullSession SingletonInstance = new NullSession();

        /// <inheritdoc/>
        public long? UserID { get { return null; } }

        /// <inheritdoc/>
        public long? TenantID { get { return null; } }


    
        public string UserName
        {
            get
            {
                return null;
            }
        }
        public string TenantName
        {
            get
            {
                return null;
            }
        }

        public string PwdKey
        {
            get
            {
                return null;
            }
        }

        private NullSession()
        {

        }
    }
}
